<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Region extends MY_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model("province_model", "pm");
        $this->load->model("city_model", "km");
    }
    function index() {
        redirect(base_url());
    }
    function kabupaten() {
        echo json_encode($this->km->getByProp($this->input->post("id")));
        
    }

}

?>
